﻿<%
class ActionJson2
	public sub index
		Set M = Model__()
		Mo.Use "JsonGenerater"
		set json = MoLibJsonGenerater.New()
		json.put "nickname","anlige"
		json.put("name","艾恩").put "title","测试"
		
		set json3 = json.putnew("classes","array")
		json3.put "Chinese"
		json3.put "English"
		json3.put "Math"
		
		set json2 = json.putnew("score")
		json2.put "Chinese",86
		json2.put "English",90
		json2.put "Math",99

		set dict = F.activex("scripting.dictionary")
		dict("english_name")="anlige"
		dict("age")=23
		json.putdictionary "dictionary",dict

		json.putarraylist "arraylist","123,345,234,256"

		json.putvbarray "vbarray",array("a","b",3,"d")
		json.put "date",now()
		
		result = json.toString()
		Mo.assign "result",result
		Mo.assign "result_format",json.toString("	")
		Mo.display "Home:Json2"
	end sub
end class
%>